Skip to content

fix/issue 79 pragma strncpy - #94

Merged
tmolteno merged 2 commits into
masterfrom
fix/issue-79-pragma-strncpy
Jun 25, 2026
Merged

fix/issue 79 pragma strncpy#94
tmolteno merged 2 commits into
masterfrom
fix/issue-79-pragma-strncpy

Conversation

@tmolteno

Copy link
Copy Markdown
Owner

tmolteno added 2 commits June 25, 2026 10:37
- Fix nec_ground::get_radial_wire_length() returning wrong field
- Fix dangling pointer in ASSERT macro (nec_debug.h)
- Remove using namespace std from nec2cpp.h header
- Fix multi-frequency plane wave excitation loop
- Optimize safe_array::resize() to use geometric growth
- Refactor c_ggrid::interpolate() for thread safety and speed
- Fix safe_array BoundsViol ODR issue
Replace strncpy + pragma diagnostic suppression with memcpy, which
does not trigger -Wstringop-truncation. The memcpy copies exactly
2 bytes of the mnemonic into gm[3], which is the intended behavior.

Closes #79
@tmolteno
tmolteno merged commit 713c8b8 into master Jun 25, 2026
1 check passed
@tmolteno
tmolteno deleted the fix/issue-79-pragma-strncpy branch June 25, 2026 08:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

#pragma GCC breaks CLANG and older GCCs

1 participant